package com.huilian.iotbox.admin.wap.service;

import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.dto.WeiXinDto;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Map;

/**
 * @author chenqiwen
 * @CreateDate: 2022-05-13-13-50
 * @Description:
 */
public interface WeiXinService {

    String login(HttpServletRequest request) throws UnsupportedEncodingException;

    ServerResponse appletLogin(WeiXinDto weiXinDto, HttpServletRequest request) throws IOException;

    ServerResponse getWxJsSdkConfig(WeiXinDto weiXinDto);

    ServerResponse bindWeXin(WeiXinDto weiXinDto) throws IOException;

    Map<String, String> getUnionId(String code);

    ServerResponse getPhoneNumber(WeiXinDto weiXinDto) throws Exception;

    String outPutUserInfo(HttpServletRequest request) throws UnsupportedEncodingException;
}
